export const routes = [
    //首页
  {
    path: '/',
    name: 'Home',
    component:()=>import('@/views/Home/index.vue'),
  },
  //商品详情
  {
    path: '/product/:id',
    name: 'Product',
    component:()=>import('@/views/Product/index.vue')
  },
  //购物车
  {
    path: '/cart',
    name: 'Cart',
    component:()=>import('@/views/Cart/index.vue')
  },
  {
    path: '/login',
    name: 'Login',
    component:()=>import('@/views/Login/index.vue')
  },
  {
    path: '/register',
    name: 'Register',
    component:()=>import('@/views/Register/index.vue')
  },
  //订单页面
  {
    path: '/order',
    name: 'Order',
    component:()=>import('@/views/Order/index.vue')
  },
  {
    path: '/user',
    name: 'User',
    component:()=>import('@/views/User/index.vue')
  }
  
]